﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master" AutoEventWireup="true" CodeBehind="DeliverySelectAreaManage.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.RelationQuery.DeliverySelectAreaManage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
        function openReason(areaid) {
            window.showModalDialog("CheckReason.aspx?tem="+<%=System.DateTime.Now.Millisecond.ToString() %>+"&areaId=" + areaid, "", "dialogWidth:600px;dialogHeight:200px;scroll:yes;status:no");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li><a href="DeliverySelectArea.aspx">配送区域选择</a></li>
            <li class="active"><a href="DeliverySelectAreaManage.aspx">维护已选区域</a></li>
        </ul>
        <%--<div id="note">
            配送区域选择</div>
        <div id="note2">
        </div>--%>
    </div>
     <div id="tabcontent">
        <table class="querylist">
        <tr>
            <td align="center">
                <asp:Label Text="项目：" ID="lblProjectid" runat="server" />
            </td>
            <td align="center">
                <asp:DropDownList ID="ddlProjectid" runat="server">
                    <asp:ListItem Value="0001">2012年内蒙古自治区网上医用耗材采购项目</asp:ListItem>
                    <asp:ListItem Value="0002">2014年内蒙古自治区网上高值医用耗材阳光采购项目</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
                <hz:HzButton ID="btnQuery0" runat="server" OnClick="btnQuery_Click" Text="查  询" CssClass="btn" />
            </td>
        </tr>
        </table>
        </div>
    <br />
    <%--<asp:HiddenField ID="hidStatus" runat="server" />--%>
    <asp:GridView ID="gvwArea" CssClass="mainlist" runat="server" 
        AutoGenerateColumns="False" DataKeyNames="AreaID" 
        onrowcommand="gvwArea_RowCommand" onrowdatabound="gvwArea_RowDataBound">
        <Columns>
            <asp:BoundField DataField="AreaName" HeaderText="地区名称" ItemStyle-Width="70%" 
                HeaderStyle-Width="70%" >
                <HeaderStyle Width="70%"></HeaderStyle>

                <ItemStyle Width="70%"></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="中心审核状态">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("checkByZbzx") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <%--<asp:Label ID="Label2" runat="server" Text='<%# Eval("checkByZbzx").ToString()=="1"?"通过":Eval("checkByZbzx").ToString()=="2"?"未通过":"未审核" %>'></asp:Label>--%>
                    <asp:LinkButton runat="server" ID="Label2" Text='<%# Eval("checkByZbzx").ToString()=="1"?"通过":Eval("checkByZbzx").ToString()=="2"?"未通过":"未审核" %>' OnClientClick=<%# "openReason("+Eval("AreaID")+") "%> Enabled='<%# Eval("checkByZbzx").ToString()=="2"? true: false %>'></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="盟市审核状态" Visible="false">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("checkStatus") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:LinkButton runat="server" ID="lblCheck" Text='<%# Eval("checkStatus").ToString()=="1"?"通过":Eval("checkStatus").ToString()=="2"?"未通过":"未审核" %>' OnClientClick=<%# "openReason("+Eval("AreaID")+") "%> Enabled='<%# Eval("checkStatus").ToString()=="2"? true: false %>'></asp:LinkButton>
                    <%--<asp:Label ID="lblCheck" runat="server" Text='<%# Eval("checkStatus").ToString()=="1"?"通过":Eval("checkStatus").ToString()=="2"?"未通过":"未审核"%>'></asp:Label>--%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="提交状态">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("submitStatus") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("submitStatus").ToString()=="1"?"已提交":"未提交" %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <%--&nbsp;<asp:CheckBox ID="CheckBox1" runat="server" />--%><%--Enabled='<%# Eval("submitStatus").ToString() == "1"?false:true %>'--%>
                    <hz:HzLinkButton ID = "btnSubmit"  CommandName = "Add" CommandArgument='<%# Eval("Areaid") %>' Enabled="false"  
                    runat ="server" Text="提交" CssClass="btn" ></hz:HzLinkButton>
                </ItemTemplate>
            </asp:TemplateField>
           <%-- <asp:TemplateField HeaderText="原因查看">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <a href='javascript:openReason(<%#Eval("AreaID") %>)'><asp:Label ID="Label3" runat="server">查看</asp:Label></a>
                </ItemTemplate>
            </asp:TemplateField>--%>
        </Columns>
    </asp:GridView>
    <div class="listip">
        <ul>
            <li>提示:已选择的地区</li>
        </ul>
    </div>
    <div class="listctrl">
        <input type="button" id="tt" value="增加地区" onclick="javascript:window.location.href='DeliverySelectArea.aspx'" class="btn" />&nbsp;
        
       <%-- <asp:Button ID="btnSubmit" runat="server" Text="提交" CssClass="btn" 
            onclick="btnSubmit_Click" />--%>
&nbsp;<asp:Button ID="btnDel" runat="server" Text="删除" CssClass="btn" Visible="false" 
            onclick="btnDel_Click" />
        
    </div>
</asp:Content>
